package com.cloud.consumers.remote;


import com.cloud.consumers.model.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@FeignClient(name= "spring-cloud-producer")
public interface UserRemote {
    @RequestMapping(value = "/users")
    List<User> users();
}
